home *** CD-ROM | disk | FTP | other *** search
/ Especial Multimedia / Especial Multimedia.iso / Multimed / Dibujo / RENDC102.ZIP / RDCFAQ.TX_ / RDCFAQ
Text File  |  1996-05-12  |  6KB  |  124 lines

  1. RenderDotC Frequently Asked Questions List
  2. ==========================================
  3.  
  4. Table of Contents:
  5.  
  6. 1. Getting better color
  7. 2. Choosing an interface
  8. 3. Using the programmer's interface
  9.  
  10.  
  11.    1. Getting better color
  12.    -----------------------
  13.  
  14. Q: What's the difference between palette-based and RGB graphics modes?
  15. A: The Windows desktop and all of the open windows on it use the current
  16.    graphics mode of your video card.  There are two broad categories of
  17.    graphics modes: palette-based and RGB.
  18.    
  19.    In a palette-based mode, a small set of colors (typically 256) are loaded
  20.    into the system palette.  These colors must be shared by all of the windows
  21.    on the desktop.  Often, windows compete with each other for control of the
  22.    system palette.
  23.    
  24.    In an RGB mode, each window has full access to the color spectrum.  In RGB
  25.    modes, the more bits per pixel, the higher the quality.  Typical values for
  26.    the number of bits per pixel are 15, 16, 24, and 32.  While better in
  27.    quality, RGB modes consume more CPU and memory resources.
  28.  
  29. Q: Why does my image have so few colors while rendering?
  30. A: In palette-based modes (see previous question), RenderDotC waits until the
  31.    image is completely rendered before it loads the system palette.  While
  32.    rendering, it uses a very crude approximation to the final color.  Once the
  33.    image is rendered, RenderDotC tries to pick the 256 colors which best
  34.    represent the entire image.  At this point, you should see the image snap
  35.    into focus.
  36.  
  37. Q: Why does my image still have poor color after rendering is complete?
  38. A: First, make sure you point to the image in question and click.  It could be
  39.    that the system color palette was compromised by a competing window.
  40.    Selecting your image will give it control of the system palette.
  41.  
  42.    If that doesn't work, consider switching your Windows desktop to an RGB
  43.    graphics mode with more bits per pixel (see next question).
  44.  
  45. Q: How do I switch my Windows desktop graphics mode?
  46. A: Under Windows '95: start Help; click the "Index" tab; pick "resolution,
  47.    monitor"; pick "Changing your screen resolution"; click the arrow where
  48.    it says "Click here"; follow the instruction specific to your system.  You
  49.    will have to restart Windows.  You may have to sacrifice resolution in
  50.    order to get more bits per pixel.
  51.  
  52. Q: How do I create images with more bits per pixel than my Windows desktop?
  53. Q: How do I create images with higher resolution than my Windows desktop?
  54. A: Save your images as TIFF files by using rdcOutputFile.  For example, use
  55.    the following RDC bytestream commands to save an image as a 48 bit per
  56.    pixel RGB TIFF file:
  57.  
  58.        rdcOutputFile "tiff" "myimage.tif"   # Save as TIFF file
  59.        rdcColorQuantize 65535 0 65535       # Use 16 bits per color sample
  60.  
  61.    Note that the demo version is incapable of saving image files.
  62.  
  63.    2. Choosing an interface
  64.    ------------------------
  65.  
  66. Q: Which of the four interfaces should I use to describe scenes?
  67. A: The RenderDotC programmer's interface.  You get all the power of C/C++
  68.    language such as loops, conditions and functions.  You may then link
  69.    with the RDC bytestream library to convert your scene to an RDC file
  70.    automatically.  If you don't have a compiler, then use the RDC bytestream
  71.    interface directly.
  72.  
  73.    Please don't rely on the two RenderMan interfaces.  They are provided to
  74.    convert existing models and may not be supported in future releases.  It
  75.    is better to learn the RenderDotC interfaces now.
  76.  
  77. Q: Where can I find out more about the interfaces?
  78. A: The RenderDotC interfaces are best described by the online reference manual.
  79.    It is cross-indexed in two ways: as a user's guide with introductory
  80.    material and functions listed by category; and as a reference manual with
  81.    functions listed alphabetically.
  82.  
  83.    For more information about the RenderMan interface and for a good treatment
  84.    of the concepts of photorealistic rendering, see "The RenderMan Companion"
  85.    by Steve Upstill.
  86.  
  87.    3. Using the programmer's interface
  88.    -----------------------------------
  89.  
  90. Q: Why can't I link to the rendc.lib and rdc.lib libraries?
  91. A: The libraries were created with Borland C++ 4.52 and may be incompatible
  92.    with other compilers.  However, you may still use the DLL's by using one
  93.    of the following two methods:
  94.    
  95.    1: You can replace rendc.lib and rdc.lib with import libraries compatible
  96.    with your compiler.  Find the tool which creates import libraries from
  97.    DLL's (typically called "implib.exe").  Run the program on rendc.dll and
  98.    rdc.dll which are in the RDC .\bin directory.  Put the resulting .lib files
  99.    in the RDC .\lib directory.
  100.  
  101.    2: You can load the DLL's manually from your C/C++ program using the Win32
  102.    LoadLibrary() function call.
  103.  
  104. Q: How can I link to the ri2rdc.lib library?
  105. A: If your compiler doesn't recognize the format of this library, your out of
  106.    luck.  Unfortunately, the  RenderMan Interface includes exported global
  107.    variables, and thus cannot be a DLL.
  108.  
  109.    Try to get access to a workstation with a RenderMan client library,
  110.    link your program to it, run it, bring the resulting RIB file to RenderDotC,
  111.    and run it through wrib2rdc.exe.  Barring that, try converting your program
  112.    to use the RDC interface.  It could be a good learning experience.
  113.  
  114. Q: Why do I get a version error on the Borland runtime libraries?
  115. A: If you have Borland C++ installed on your system, then the RDC \bin
  116.    directory needs to be ahead of the Borland \bin directory on your PATH.
  117.    Edit your autoexec.bat and rearrange it.  This is not a problem when
  118.    launching wrendrdc.exe and wrib2rdc.exe because they are in the same
  119.    directory as the DLL's they need.
  120.  
  121. Q: Can I use a Kernighan and Ritchie (K&R) C compiler?
  122. A: Yes.  Just strip down the function prototypes in rdc.h and/or ri.h and you
  123.    should be set.  Remember to cast your function arguments when necessary.
  124.